public class ThreadDemo4 {

    public static void main1(String[] args) {
        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                //方法体
            }
        });
    }

    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            System.out.println("hello t");
        });

        t.start();

        System.out.println("hello main");
    }
}
